#pragma once 
#include <string>

using namespace std;

typedef void(*readCb)(struct bufferevent *bev, void *arg);

void connect(string ip, int port,readCb cb);
bool isConnect(string ip);
void wirteToServer(string ip,const void *data, size_t size);
void wirteToServer(string ip,const void *data, size_t size, string& recvMsg);
